import request from '@/axios'

export function getComments(id) {
    return request({
        url: '/comment/article/' + id,
        method: 'get'
    })
}

export function insertComment(data) {
    return request({
        url: '/comment',
        method: 'post',
        data
    })
}